import dayjs from 'dayjs';
import { downLoad, request } from '../../../request';

/** 导出 */
export function exportMoldLedger(params: any) {
  return downLoad({
    url: '/qms/agv/frock/mold/record/ledger/export',
    params,
    method: 'get',
    fileName: `冲压模具台账导出${dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`
  });
}

/** 新增 */
export function addMoldLedger(data: any) {
  return request({
    url: '/qms/agv/frock/mold/record/save',
    method: 'post',
    data
  });
}
